package cn.panda.edu.dao;

import cn.panda.edu.model.Section;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 类描述：  对章节表的操作
 * @author: 张坤鹏  
 * @date： 2018-01-15 下午2:43:37
 */
public interface SectionMapper {
	/**
	 * 
	* @Title: deleteByPrimaryKey 
	* @Description: 根据章节id删除
	* @param @param sectionId
	* @param @return  
	* @return int
	 */
    int deleteByPrimaryKey(Integer sectionId);
    /**
	 * 
	* @Title: selectByCourseId 
	* @Description: 通过课程id查看章节信息
	* @param selectId
	* @return  
	 */
	 List<Section> selectByCourseId(Integer courseId);
    /**
     * 
    * @Title: insert 
    * @Description: 添加章节
    * @param @param record
    * @param @return  
    * @return int
     */
    int insert(Section record);
    /**
     * 
    * @Title: insertSelective 
    * @Description: 动态添加章节
    * @param @param record
    * @param @return  
    * @return int
     */
    int insertSelective(Section record);
    /**
     * 
    * @Title: selectByPrimaryKey 
    * @Description:  根据章节id查询
    * @param @param sectionId
    * @param @return  
    * @return Section
     */
    Section selectByPrimaryKey(Integer sectionId);
    /**
     * 
    * @Title: updateByPrimaryKeySelective 
    * @Description:	动态更新章节
    * @param @param record
    * @param @return  
    * @return int
     */
    int updateByPrimaryKeySelective(Section record);
    /**
     * 
    * @Title: updateByPrimaryKey 
    * @Description: 更新章节
    * @param @param record
    * @param @return  
    * @return int
     */
    int updateByPrimaryKey(Section record);
    /**
     * 
    * @Title: getAllSection 
    * @Description: 模糊查询
    *@param sectionName
    *@return  
    * List<Section>
     */
    List<Section> getAllSection(@Param("sectionName") String sectionName);
}




